import { IsString, Length, IsOptional, IsNumberString } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { PagingDto } from 'src/common/dto/index';

export class ListSiteDto extends PagingDto {
    @ApiProperty({ required: false })
    @IsOptional()
    @IsNumberString()
    @Length(0, 20)
    account?: number;

    @ApiProperty({ required: false })
    @IsOptional()
    @IsString()
    @Length(0, 30)
    keyWord?: string;

    @ApiProperty({ required: false })
    @IsOptional()
    @IsString()
    @Length(0, 100)
    packageName?: string;
}
